package com.rgs.sourcecode.listen;

import org.springframework.boot.context.event.ApplicationStartingEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author RenGaoshuai
 * @date 2024/7/4 10:12
 * @description
 */
@Component
public class MyStartingListen implements ApplicationListener<ApplicationStartingEvent> {

    @Override
    public void onApplicationEvent(ApplicationStartingEvent event) {
        System.out.println("成功监听到ApplicationStartingEvent，先在正处于springboot启动流程的starting阶段-----------------");
    }
}
